﻿@model ProgressTracker.WebUI.Models.Account.CreateModel

@{
    ViewBag.Title = "Create";
}

<h3>
    You are one step away from building better habits! <br />
    <small>All we need is a little information to get started.</small>
</h3>

@if (!Html.ViewData.ModelState.IsValid)
{
    <div class="alert alert-danger">
        @Html.ValidationSummary()
    </div>
}

@using (Html.BeginForm("Create", "Account", FormMethod.Post, new { id = "createForm", @class="form-horizontal" }))
{
    <div class="form-group">
        <div class="col-md-1 col-sm-1 col-xs-2"  >
            @Html.LabelFor(x => x.Email)
        </div>
        <div class="col-md-6 col-sm-6 col-xs-12">
            @Html.TextBoxFor(x => x.Email, new { type = "email", @class = "form-control" })
        </div>
    </div>
    <div class="form-group"> 
        <div class="col-md-1 col-sm-1 col-xs-2">
            @Html.LabelFor(x => x.Password)
        </div>   
        <div class="col-md-6 col-sm-6 col-xs-12">
            @Html.TextBoxFor(x => x.Password, new { type = "password", @class = "form-control" })
        </div>    
    </div>
    <div class="form-group">   
        <div class="col-md-1 col-sm-1 col-xs-2">
            @Html.Label("Confirm Password")
        </div>
        <div class="col-md-6 col-sm-6 col-xs-12">
            @Html.TextBoxFor(x => x.ConfirmPassword, new { type = "password", @class = "form-control" })
        </div>
    </div>
    
    <button id="createBtn" class="btn btn-primary" type="submit">Submit</button>
}
<script src="~/Scripts/Account/Create.js"></script>